package co.baiku.boot.wechat.config;

import co.baiku.boot.wechat.config.mp.WxMpServiceAutoConfiguration;
import co.baiku.boot.wechat.config.mp.WxMpStorageAutoConfiguration;
import co.baiku.boot.wechat.properties.WxMpProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * .
 *
 * @author someone
 */
@Configuration
@EnableConfigurationProperties(WxMpProperties.class)
@ConditionalOnProperty(prefix = "wx.mp", value = "enabled", havingValue = "true")
@Import({ WxMpStorageAutoConfiguration.class, WxMpServiceAutoConfiguration.class })
public class WxMpAutoConfiguration {
}
